package insight.sm.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity(name = "TblTest")
public class TblTest {

	//@Column (name = "id")	
	private int id;

	@Column (name = "userid")	
	private String name;

	@Column(name = "role")
	private String roleName;
	
	@Column(name = "Amt")
	private double amount;
	
	@Column(name = "BirthDate")
	private Date dob;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getRoleName() {
		return roleName;
	}
	
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}
	

	public Date getDob() {
		return dob;
	}

	public void setDob(Date dob) {
		this.dob = dob;
	}
	@Override
	public String toString() {
		return "Id: " + id + "\t" + "user Id: " + name + "\t" + "Role : "
				+ roleName + "\t" + "Amt : " + amount + "\t" + "DOB : " +dob +  "\n";
	}
}
